import base from '../../scripts/base'
import utils from '../../scripts/utils'
import './slide.css'
import $ from 'jquery'

//解决浏览器的白色背景
function native_call(url) {
    url = 'native://?action=' + encodeURIComponent(url);
    var iframe = document.createElement("IFRAME");
    iframe.setAttribute("src", url);
    document.documentElement.appendChild(iframe);
    iframe.parentNode.removeChild(iframe);
    iframe = null;
}
$(function () {
    native_call('onDidFinished')
});

if (utils.getUrlString('slide') == '1') {
    $('.slide1').siblings().remove()
} else if (utils.getUrlString('slide') == '2') {
    $('.slide2').siblings().remove()
} else if (utils.getUrlString('slide') == '3') {
    $('.slide3').siblings().remove()
} else {
    $('.slide1').siblings().remove()
}